<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    @cancel="handleCancel"
    cancelText="关闭">
    <a-spin :spinning="confirmLoading">
      <j-form-container >
        <a-form-model ref="form" :model="model"  slot="detail">
          <a-row>

            <a-col :span="12">
              <a-form-item label="能源数据类型" :labelCol="labelCol" :wrapperCol="wrapperCol">
                <j-dict-select-tag placeholder="请选择能源数据类型" v-model="model.eneTypeNo" dictCode="xsd_energy_type,energy_name,energy_no,pid='0'" @click="eneTypeNo"/>
              </a-form-item>
            </a-col>

          </a-row>
        </a-form-model>
      </j-form-container>
    </a-spin>
  </j-modal>
</template>

<script>

export default {
  name: 'InsCopyImport',
  components: {

  },
  data () {
    return {
      title:'',
      width:1600,
      visible: false,
      disableSubmit: false,
      confirmLoading: false,
      model:{},
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 },
      },
      wrapperCol: {
        xs: { span: 24 },
        sm: { span: 16 },
      },
    }
  },
  methods: {
    eneTypeNo(){
      console.log(this.model.eneTypeNo)
    },
    add () {
      this.visible=true
    },
    close () {
      this.$emit('close');
      this.visible = false;
    },
    handleOk () {

    },
    submitCallback(){
      this.$emit('ok');
      this.visible = false;
    },
    handleCancel () {
      this.close()
    }
  }
}
</script>